import { ApiProperty } from '@nestjs/swagger';

export class BaseRes {
  @ApiProperty()
  msg: string;

  @ApiProperty()
  code: number;

  @ApiProperty()
  data: any;

  constructor(data:any={},code:number=200, msg:string='success'){
    this.data = data;
    this.code = code;
    this.msg = msg;
  }

}
